package com.education.online.service.impl;

import com.education.common.utils.Convert;
import com.education.online.mapper.OUserTestpaperMapper;
import com.education.online.pojo.OUserTestpaper;
import com.education.online.service.OUserTestpaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 我的测试 服务层实现
 *
 * @author d
 * @date 2020-06-15 16:43:46
 */
@Service
public class OUserTestpaperServiceImpl implements OUserTestpaperService {

    @Autowired
    private OUserTestpaperMapper oUserTestpaperMapper;

    //查询我的测试信息
    @Override
    public OUserTestpaper selectOUserTestpaperById(Integer id) {
        return oUserTestpaperMapper.selectOUserTestpaperById(id);
    }

    // 查询我的测试列表
    @Override
    public List<OUserTestpaper> selectOUserTestpaperList(OUserTestpaper oUserTestpaper) {
        return oUserTestpaperMapper.selectOUserTestpaperList(oUserTestpaper);
    }

    // 新增我的测试
    @Override
    public int insertOUserTestpaper(OUserTestpaper oUserTestpaper) {
        return oUserTestpaperMapper.insertOUserTestpaper(oUserTestpaper);
    }

    //修改我的测试
    @Override
    public int updateOUserTestpaper(OUserTestpaper oUserTestpaper) {
        return oUserTestpaperMapper.updateOUserTestpaper(oUserTestpaper);
    }

    //删除我的测试对象
    @Override
    public int deleteOUserTestpaperByIds(String ids) {
        return oUserTestpaperMapper.deleteOUserTestpaperByIds(Convert.toStrArray(ids));
    }
}